package net.metashare.grah.logic

/**
 * Grah is a notion produced by metashare.net
 * User: dsherema
 * Date: May 1, 2010
 * Time: 4:43:41 PM
 *
 */

class Any implements Predicate {

  def Set predicates

  def Either(Set preds) {
    predicates = preds
  }

  def boolean apply(Object object) {

    predicates.each() { if (it.apply(object)) return true }
    return false
  }
}